﻿using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace hmc.im.service.core
{
    public sealed class DBUtils
    {
        static DBUtils instance = null;

        static MySqlConnection _connection = null;

        DBUtils()
        {
            _connection = new MySql.Data.MySqlClient.MySqlConnection("server=192.168.1.131;user=root;database=cn0001688;password=admin;Pooling=true");
        }



        public static DBUtils Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new DBUtils();
                }
                return instance;
            }
        }

        public MySqlConnection Connection { get { return _connection; } }
    }


}
